# terminal
set -as terminal-features ",$TERM:RGB:usstyle"
set -s escape-time 0

# prefix key
set -g prefix C-a

# mode keys
set -g mode-keys vi
set -g status-keys emacs

# mouse
set -g mouse on

# history
set -g history-limit 4096

# base index
set -g base-index 1
set -g pane-base-index 1
set -g renumber-windows on

# navigation
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind ^ last-window

# copy mode
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi C-v send -X begin-selection \; send -X rectangle-toggle
bind -T copy-mode-vi y send -X copy-selection-and-cancel

# appearance
set -g status-justify left
set -g status-style none
set -g status-left ""
set -g status-right "#[fg=blue]\s#{session_name}\s"
set -g window-status-separator ""
set -g window-status-format "#[fg=brightblack]\s#{window_index}:\s#{window_name}#{window_flags}\s"
set -g window-status-current-format "#[fg=magenta,reverse]\s#{window_index}:\s#{window_name}#{window_flags}\s"
set -g pane-border-style fg=brightblack
set -g pane-active-border-style fg=magenta
set -g display-panes-colour brightblack
set -g display-panes-active-colour magenta
set -g menu-style none
set -g menu-selected-style bg=magenta,fg=black
set -g menu-border-style fg=magenta
set -g message-style none
set -g message-command-style none
set -g mode-style reverse
set -g copy-mode-match-style fg=blue,reverse
set -g copy-mode-current-match-style fg=green,reverse
